
#include "OperationMult.h"

using namespace npFactoryMethod;


OperationMult::OperationMult() : Operation()
{

}

OperationMult::~OperationMult()
{

}

OperationMult::OperationMult(const OperationMult& cpy) : Operation(cpy)
{

}

OperationMult& OperationMult::operator=(const OperationMult& asn)
{
    if (this == &asn)
    {
        return *this;
    }
    else
    {
        Operation::operator=(asn);
        return *this;
    }
}

OperationMult* OperationMult::clone() const
{
    return new OperationMult(*this);
}

int OperationMult::getResult() const
{
    return this->getFirstNum() * this->getSecondNum();
}
